package com.bingxue.edu.common.controller;

import cn.dev33.satoken.annotation.SaIgnore;
import com.bingxue.edu.management.education.service.ClassInfoService;
import com.bingxue.edu.management.education.service.EnrollmentService;
import com.bingxue.edu.management.education.service.StudentService;
import com.bingxue.edu.management.shop.service.CartService;
import com.bingxue.edu.management.shop.service.CouponService;
import com.bingxue.edu.management.shop.service.FuiouPayService;
import com.bingxue.edu.management.shop.service.OrderItemService;
import com.bingxue.edu.management.shop.service.OrderService;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Tag(name = "临时测试接口")
@Slf4j
@SaIgnore
@RequestMapping
@RestController
@RequiredArgsConstructor
public class TestController {

    private final FuiouPayService fuiouPayService;
    private final OrderService orderService;
    private final OrderItemService orderItemService;
    private final EnrollmentService enrollmentService;
    private final CartService cartService;
    private final StudentService studentService;
    private final CouponService couponService;
    private final ClassInfoService classInfoService;


    @GetMapping("/fixed/order")
    @Transactional(rollbackFor = Exception.class)
    public void fixedOrder() {


        // 查询订单项目
        // 如果已经报名则不添加回购物车
        // 否则添加回购物车
    }   // 取消订单

}
